{include file="common/common"}
<!-- /Page Sidebar -->
<!-- Page Content -->
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <a href="#">系统</a>
            </li>
            <li>
                <a href="{:url('lst')}">文章管理</a>
            </li>
            <li class="active">添加文章</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Body -->
    <div class="page-body">

        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget">
                    <div class="widget-header bordered-bottom bordered-blue">
                        <span class="widget-caption">修改文章</span>
                    </div>
                    <div class="widget-body">
                        <div id="horizontal-form">
                            <form class="form-horizontal" role="form" action="{:url('edit')}" method="post" enctype="multipart/form-data">
                                <input type="hidden" name="id" value="{$art.id}">
                                <div class="form-group">
                                    <label for="username" class="col-sm-2 control-label no-padding-right">文章标题</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" placeholder="" name="title" required="" type="text" value="{$art.title}">
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>
                                <div class="form-group">
                                    <label for="group_id" class="col-sm-2 control-label no-padding-right">作者</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" placeholder="" name="author" type="text" value="{$art.author}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="group_id" class="col-sm-2 control-label no-padding-right">关键词</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" placeholder="" name="keywords" type="text" value="{$art.keywords}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="group_id" class="col-sm-2 control-label no-padding-right">描述</label>
                                    <div class="col-sm-6">
                                        <textarea class="form-control" name="des"  cols="100" rows="2">{$art.des}
                                        </textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="username" class="col-sm-2 control-label no-padding-right">所属栏目</label>
                                    <div class="col-sm-6">
                                        <select name="cateid" id="">
                                            <option value="0">顶级栏目</option>
                                            {volist name="cateres" id="cateres"}
                                            <option {eq name="$art.cateid" value="$cateres['id']"}selected="selected"{/eq} value="{$cateres.id}">{neq name="$cateres['level']" value="0"}|{/neq}<?php echo str_repeat('---',$cateres['level']);?>{$cateres.catename}</option>
                                            {/volist}



                                        </select>
                                    </div>
                                    <p class="help-block col-sm-4 red"></p>
                                </div>
                                <div class="form-group">
                                    <label for="group_id" class="col-sm-2 control-label no-padding-right">内容</label>
                                    <div class="col-sm-6">
                                        <textarea name="content" id="content" style="width: 100%">{$art.content}</textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="group_id" class="col-sm-2 control-label no-padding-right">缩略图</label>
                                    <div class="col-sm-6">
                                        {if condition="$art['thumb'] neq ''"}
                                        <img src="{$art.thumb}" alt="" style="width: 50px;height: 50px">
                                        {else /}
                                        暂且无缩略图
                                        {/if}
                                        <input placeholder="" name="thumb" type="file">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="group_id" class="col-sm-2 control-label no-padding-right">是否推荐</label>
                                    <div class="col-sm-6">
                                        <label style="margin-right: 15px">
                                            <input type="radio" value="1" name="rec" {if condition="$art['rec'] eq 1"}checked="checked"{/if}>
                                            <span class="text">是</span>
                                        </label>
                                        <label style="margin-right: 15px">
                                            <input type="radio" value="0" name="rec" {if condition="$art['rec'] eq 0"}checked="checked"{/if}">
                                            <span class="text">否</span>
                                        </label>
                                    </div>
                                </div>
                                <div class="form-group" style="margin-top: 50px">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-default">修改文章</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- /Page Body -->
</div>
<!-- /Page Content -->
</div>
</div>

<!--Basic Scripts-->
<script src="__static__/style/jquery_002.js"></script>
<script src="__static__/style/bootstrap.js"></script>
<script src="__static__/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="__static__/style/beyond.js"></script>
<script>
    UE.getEditor('content',{initialFrameHeight:400})
</script>


</body></html>